<?php if ($this->isAjax()):?>
<h3 class="flb">
	<em id="return_<?php echo $_GET['handlekey']?>">增加账户</em>
	<span>
		<a href="javascript:;" class="flbc" onclick="hideWindow('<?php echo $_GET['handlekey']?>');" title="关闭">关闭</a>
	</span>
</h3>
<div style="width:260px; height:150px; padding:10px;">
<?php endif;?>

<?php if ($this->DO_STATUS):?>
	<?php if ($this->DO_STATUS['SUCCESS'] == 1):?>
	<div>修改成功！<a href="?m=account">返回资产账户列表</a></div>
	<?php else:?>
	<div>修改失败！<?php echo $this->DO_STATUS['INFO']?>，<a href="?m=account">返回资产账户列表</a></div>
    <?php endif;?>
<?php endif;?>

<form action="index.php?m=account&a=edit" method="post">
账户类型：<select name="AccountType">
<?php foreach($this->AccountType as $k=>$v):?>
<option value="<?php echo $v['AID'];?>"<?php if( $this->AccountInfo['AccountType'] == $v['AID']):?> selected="selected"<?php endif;?>><?php echo $v['AccountTypeName']?></option>
<?php endforeach;?>
</select><br />
账户名称：<input type="text" name="AccountName" value="<?php echo $this->AccountInfo['AccountName'];?>" /><br />
关联银行：<select name="Bank">
<?php foreach($this->Bank as $k=>$v):?>
<option value="<?php echo $v['AID'];?>"<?php if( $this->AccountInfo['Bank'] == $v['AID']):?> selected="selected"<?php endif;?>><?php echo $v['OrganName']?></option>
<?php endforeach;?>
</select><br />
备注：<input type="text" name="Remark" value="<?php echo $this->AccountInfo['Remark'];?>" /><br />
<input type="hidden" name="do" value="save" />
<input type="hidden" name="AccountID" value="<?php echo $this->AccountInfo['AID'];?>" />
<input type="submit" name="save" value="保存" />
</form>

<?php if ($this->isAjax()):?>
</div>
<?php endif;?>